<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MagTwin: magtwin/include/MagTwin.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">MagTwin<span id="projectnumber">&#160;V0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_86ea7a88b15d1db1fc6dc4fd1a380af7.html">magtwin</a></li><li class="navelem"><a class="el" href="dir_342feebb14a129b34efa15137427ce30.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">MagTwin.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_mag_twin_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;QMainWindow&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;QGraphicsView&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;QGraphicsScene&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;QList&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="_g_mesh_8h.html">GMesh.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &quot;MeshOutput.h&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &quot;<a class="code" href="_mag_graphics_view_8h.html">MagGraphicsView.h</a>&quot;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &quot;<a class="code" href="logger_8h.html">logger.h</a>&quot;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>QT_BEGIN_NAMESPACE</div>
<div class="foldopen" id="foldopen00026" data-start="{" data-end="}">
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="namespace_ui.html">   26</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_ui.html">Ui</a> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">class </span><a class="code hl_class" href="class_mag_twin.html">MagTwin</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>}</div>
</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>QT_END_NAMESPACE</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_mag_twin.html">   31</a></span><span class="keyword">class </span><a class="code hl_class" href="class_mag_twin.html">MagTwin</a> : <span class="keyword">public</span> QMainWindow</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>{</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    Q_OBJECT</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    Ui::MagTwin *ui;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <a class="code hl_class" href="class_g_mesh.html">GMesh</a>* mesh = <span class="keyword">new</span> <a class="code hl_class" href="class_g_mesh.html">GMesh</a>();</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    <a class="code hl_class" href="class_mag_logger.html">MagLogger</a> maglog;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    QList&lt;int&gt; MainWindowSplitterScale{1, 6};</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    QList&lt;int&gt; ShowWindowSplitterScale{7, 1};</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    <span class="keywordtype">void</span> initUI();</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    <span class="keywordtype">void</span> loadingActions();</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    <a class="code hl_function" href="class_mag_twin.html#a471c2259be3e03b61d51a6e76298946e">MagTwin</a>(QWidget *parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    <a class="code hl_function" href="class_mag_twin.html#a60bcc6ab6010c911479216f6ccdc8061">~MagTwin</a>();</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    <span class="comment">// void drawLine(const QPointF &amp;startPoint, const QPointF &amp;endPoint);</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_mag_twin.html#a4d22d7803d94a437c3a6d43793ee2548">updateLog</a>();</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>};</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="ttc" id="a_g_mesh_8h_html"><div class="ttname"><a href="_g_mesh_8h.html">GMesh.h</a></div><div class="ttdoc">Gmsh类是用来提取Gmsh网格文件中的网格信息</div></div>
<div class="ttc" id="a_mag_graphics_view_8h_html"><div class="ttname"><a href="_mag_graphics_view_8h.html">MagGraphicsView.h</a></div><div class="ttdoc">图形视图类</div></div>
<div class="ttc" id="aclass_g_mesh_html"><div class="ttname"><a href="class_g_mesh.html">GMesh</a></div><div class="ttdoc">Gmsh类是用来提取Gmsh网格文件中的网格信息</div><div class="ttdef"><b>Definition</b> GMesh.h:26</div></div>
<div class="ttc" id="aclass_mag_logger_html"><div class="ttname"><a href="class_mag_logger.html">MagLogger</a></div><div class="ttdoc">MagLogger类用于记录日志信息.</div><div class="ttdef"><b>Definition</b> logger.h:24</div></div>
<div class="ttc" id="aclass_mag_twin_html"><div class="ttname"><a href="class_mag_twin.html">MagTwin</a></div><div class="ttdef"><b>Definition</b> MagTwin.h:32</div></div>
<div class="ttc" id="aclass_mag_twin_html_a471c2259be3e03b61d51a6e76298946e"><div class="ttname"><a href="class_mag_twin.html#a471c2259be3e03b61d51a6e76298946e">MagTwin::MagTwin</a></div><div class="ttdeci">MagTwin(QWidget *parent=nullptr)</div><div class="ttdoc">构造函数</div><div class="ttdef"><b>Definition</b> MagTwin.cpp:14</div></div>
<div class="ttc" id="aclass_mag_twin_html_a4d22d7803d94a437c3a6d43793ee2548"><div class="ttname"><a href="class_mag_twin.html#a4d22d7803d94a437c3a6d43793ee2548">MagTwin::updateLog</a></div><div class="ttdeci">void updateLog()</div><div class="ttdoc">画线</div><div class="ttdef"><b>Definition</b> MagTwin.cpp:118</div></div>
<div class="ttc" id="aclass_mag_twin_html_a60bcc6ab6010c911479216f6ccdc8061"><div class="ttname"><a href="class_mag_twin.html#a60bcc6ab6010c911479216f6ccdc8061">MagTwin::~MagTwin</a></div><div class="ttdeci">~MagTwin()</div><div class="ttdoc">析构函数</div><div class="ttdef"><b>Definition</b> MagTwin.cpp:24</div></div>
<div class="ttc" id="alogger_8h_html"><div class="ttname"><a href="logger_8h.html">logger.h</a></div><div class="ttdoc">The MagLogger class is used to log messages to a file and to a vector of strings.</div></div>
<div class="ttc" id="anamespace_ui_html"><div class="ttname"><a href="namespace_ui.html">Ui</a></div><div class="ttdoc">主窗口类</div><div class="ttdef"><b>Definition</b> MagTwin.h:26</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
